package com.fiona.core.loadbalance;

import java.util.List;

import com.fiona.annotation.FionaSPI;

/**
 * Interface to the load balancing policy
 *
 */
@FionaSPI
public interface LoadBalance {
    /**
     * Choose one from the list of existing service addresses list
     */
    String selectServiceAddress(List<String> serviceAddresses, String serviceName);
}
